package com.zxcl.dto;

import com.zxcl.domain.ProdPropValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 规格修改dto
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("规格修改对象")
@Validated
public class PropUpdateDTO {

    @ApiModelProperty("规格名称")
    @NotBlank(message = "规格名称不能为空")
    private String propName;

    @ApiModelProperty("规格Id")
    @NotNull(message = "规格id不能为空")
    private Long propId;

    @ApiModelProperty("规格值集合")
    private List<ProdPropValue> prodPropValues;
}
